<?php include _include(ADMIN_PATH.'view/htm/header.inc.htm');?>

<div class="row">
	<div class="col-lg-10 offset-lg-1">

		<h3>后台首页</h3>
		<hr />
		<div class="card card-block m-t-1">
			<h5>网站总览</h5>
			<hr />
			<div class="row">
				<div class="col-md-6 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">会员总数：</dt>
						<dd class="text-right"><?php echo $stat['user_total']; ?> 人</dd>
					</dl>
				</div>
				<div class="col-md-6 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">今日注册：</dt>
						<dd class="text-right"><?php echo $stat['user_today_register'] ? $stat['user_today_register'] : '0'; ?> 人</dd>
					</dl>
				</div>
			</div><hr>
			<div class="row">
				<div class="col-md-6 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">提现总额：</dt>
						<dd class="text-right"><?php echo $stat['cash_total']['total'] ? $stat['cash_total']['total'] : '0'; ?> 元</dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">今日提现：</dt>
						<dd class="text-right"><?php echo $stat['cash_today']['total'] ? $stat['cash_today']['total'] : '0'; ?> 元</dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">本月提现：</dt>
						<dd class="text-right"><?php echo $stat['cash_month']['total'] ? $stat['cash_month']['total'] : '0'; ?> 元</dd>
					</dl>
				</div>
				<div class="col-md-6 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">支付总额：</dt>
						<dd class="text-right"><?php echo $stat['order_total']['total'] ? $stat['order_total']['total'] : '0'; ?> 元</dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">今日支付：</dt>
						<dd class="text-right"><?php echo $stat['order_today']['total'] ? $stat['order_today']['total'] : '0'; ?> 元</dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">本月支付：</dt>
						<dd class="text-right"><?php echo $stat['order_month']['total'] ? $stat['order_month']['total'] : '0'; ?> 元</dd>
					</dl>
				</div>
			</div>
				
		</div>
		
		<div class="card card-block m-t-1">
			<h5>服务器信息 <a href="<?php echo url('index-phpinfo');?>"><small>[PHPINFO]</small></a></h5>
			<hr />
			<div class="row">
				<div class="col-md-4 m-b-1 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">OS：</dt>
						<dd class="text-right"><?php echo PHP_OS; ?></dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">Web Server：</dt>
						<dd class="text-right nowrap"><?php echo $info['SERVER_SOFTWARE']; ?></dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">PHP：</dt>
						<dd class="text-right"><?php echo PHP_VERSION;?></dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">数据库：</dt>
						<dd class="text-right"><?php echo $conf['db']['type']; ?><br><small> (<?php echo $info['dbversion']; ?>)</small></dd>
					</dl>
				</div>
				<div class="col-md-4 m-b-1 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">post_max_size：</dt>
						<dd class="text-right"><?php echo $info['post_max_size']; ?></dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">upload_max_filesize：</dt>
						<dd class="text-right"><?php echo $info['upload_max_filesize']; ?></dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">allow_url_fopen：</dt>
						<dd class="text-right"><?php echo $info['allow_url_fopen']; ?> </dd>
					</dl>
					<dl class="row m-b-1">
						<dt class="text-muted">安全模式：</dt>
						<dd class="text-right"><?php echo $info['safe_mode']; ?></dd>
					</dl>
				</div>
				<div class="col-md-4 m-b-1 p-l-2 p-r-2">
					<dl class="row m-b-1">
						<dt class="text-muted">max_excution_time：</dt>
						<dd class="text-right"><?php echo $info['max_execution_time']; ?>Seconds</dd>
					</dl>
					
					<dl class="row m-b-1">
						<dt class="text-muted">memory_limit：</dt>
						<dd class="text-right"><?php echo $info['memory_limit']; ?></dd>
					</dl>
					<dl class="row m-b-1">

					</dl>
					<dl class="row m-b-1">

					</dl>
				</div>
			</div>
		</div>
		
		<a role="button" class="btn btn-primary center-block hidden-md-up" href="../<?php echo url('my');?>"> <?php echo lang('back');?> </a>
	</div>
</div>

<?php include _include(ADMIN_PATH.'view/htm/footer.inc.htm');?>

<script>
$('#nav_pc li.home, #nav_mobile li.home').tab('show');
</script>